// cover some element-ui styles

.el-button {
    border-radius: 6px;
}

.el-button--small {
    max-height: 34px;
    line-height: 12px;
    padding: 10px 20px;
    span {
        font-size: 14px;
    }
}

.el-button.is-plain:hover {
    color: #676e75;
    background: #f5f7fa;
    border-color: #dae1e9;
}

.el-button.is-plain:focus {
    color: #676e75;
    background: #eaeef4;
    border-color: #dae1e9;
}

.el-button--primary.is-plain {
    border-color: #6b5ee2 !important;
    background: #fff !important;
}

.el-button--primary.is-plain:hover {
    background: #f3f2fd !important;
    color: #6b5ee2 !important;
}
.el-button--primary.is-plain:focus {
    background: #e7e5fa !important;
    color: #6b5ee2 !important;
}

.el-button--primary.is-plain.is-disabled {
    background: #f3f2fd !important;
    border-color: #b5aef0 !important;
}

.el-button--danger.is-plain {
    border-color: #fe6470;
    color: #fe6470;
    background: #fff;
}

.el-button--danger.is-plain:hover {
    border-color: #fe6470;
    color: #fe6470;
    background: #feeff0;
}

.el-button--danger.is-plain:focus {
    border-color: #fe6470;
    color: #fe6470;
    background: #f8dbdd;
}

.el-input--small {
    font-size: 14px;
}

.el-input-group--prepend {
    .el-input-group__prepend {
        border-radius: 6px 0 0 6px;
        background: #fff;
    }
    .el-input__inner {
        border-radius: 0 6px 6px 0 !important;
    }
}

.el-input-group--append {
    .el-input__inner {
        border-radius: 6px 0 0 6px !important;
    }
}

// .el-input--small,.el-select--small,
.el-input--small .el-input__inner {
    height: 34px;
    line-height: 34px;
    border-radius: 6px;
    padding: 0 16px;
}

.el-date-editor .el-input__inner {
    padding-left: 30px;
}

.el-textarea {
    .el-textarea__inner {
        border-radius: 6px;
        padding-left: 16px;
    }
}

.el-button--primary:hover {
    background: #6054ca;
    border-color: #6054ca;
}

.el-button--primary:focus {
    background: #594ebc;
    border-color: #594ebc;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
    font-weight: 400 !important;
}

.el-upload {
    input[type="file"] {
        display: none !important;
    }
}

.el-upload__input {
    display: none;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
    transform: none;
    left: 0;
    position: relative;
    margin: 0 auto;
}

// refine element ui upload
.upload-container {
    .el-upload {
        width: 100%;

        .el-upload-dragger {
            width: 100%;
            height: 200px;
        }
    }
}

// dropdown
.el-dropdown-menu {
    a {
        display: block;
    }
}

// to fix el-date-picker css style
.el-range-separator {
    box-sizing: content-box;
}

.el-menu-item:focus,
.el-menu-item:hover {
    outline: 0;
    background-color: #ecf5ff !important;
    color: #409eff !important;
}

.el-menu-item.is-active {
    color: #fff !important;
    background: #409eff !important;
}

.el-submenu__title:focus,
.el-submenu__title:hover {
    outline: 0 !important;
    color: #409eff !important;
    background: #ecf5ff !important;
}

.el-message-box__wrapper {
    .el-message-box {
        padding-bottom: 0px;
    }
    .el-message-box__header {
        background: #f5f7fa;
        height: 60px;
        border-radius: 4px 4px 0 0;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        .el-message-box__title {
            font-size: 16px;
            color: #363c43;
        }
        .el-message-box__close {
            color: #b7c1c9;
            font-size: 30px;
            &:hover {
                color: #abb4bc;
            }
        }
    }
    .el-message-box__content {
        padding: 20px;
    }
    .el-message-box__btns {
        padding: 20px;
        .el-button:nth-child(1) {
            border: none;
            color: #676e75;
            font-size: 14px;
            height: 34px;
            &:hover {
                background: #f5f7fa;
            }
            &:focus {
                background: #eaeef4;
            }
        }
        .el-button--primary {
            margin-left: 30px;
            color: #fff !important;
            background: #6b5ee2 !important;
        }
    }
}

.el-dialog__header {
    background: #f5f7fa;
    height: 60px;
    border-radius: 4px 4px 0 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    .dialog-title > span,
    .el-dialog__title {
        font-size: 16px;
        color: #363c43;
    }
    .el-dialog__close {
        color: #b7c1c9;
        font-size: 30px;
        &:hover {
            color: #abb4bc;
        }
    }
}

.el-dialog__headerbtn {
    top: 16px;
}

.el-dialog__footer {
    padding: 20px;
}

.el-dialog {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*height:600px;*/
    max-height: 680px;
    max-width: calc(100% - 30px);
    border-radius: 4px;
    .dialog-footer {
        .el-button--text {
            padding-left: 20px;
            padding-right: 20px;
            color: #676e75;
            font-size: 14px;
            &:hover {
                background: #f5f7fa;
            }
            &:focus {
                background: #eaeef4;
            }
        }
        .el-button {
            margin-left: 30px;
        }
    }
}
.el-dialog .el-dialog__body {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.el-message {
    z-index: 9999999 !important;
}

.el-loading-mask {
    .el-icon-loading {
        font-size: 24px;
    }
    .el-loading-text {
        font-size: 16px;
    }
    &.is-fullscreen {
        z-index: 999999 !important;
    }
}

.el-form-item {
    margin-bottom: 20px;
}

.el-form-item:last-child {
    margin-bottom: 0px;
}

.el-form-item__label {
    color: #363c43;
    font-weight: normal;
    padding-right: 20px;
}

.el-tree-node:focus > .el-tree-node__content,
.el-tree-node__content:hover {
    background: transparent;
}

.el-tree-node__expand-icon {
    color: #90979d;
}

.el-tooltip__popper.is-light {
    border-color: transparent !important;
    box-shadow: 0px 3px 15px 0px rgba(102, 112, 123, 0.3);
    color: #676e75;
    max-width: 80%;
}

.el-tooltip__popper.is-light[x-placement^="top"] .popper__arrow:after {
    border-color: transparent !important;
}
.el-tooltip__popper.is-light[x-placement^="top"] .popper__arrow {
    border-top-color: #fff !important;
}

.el-tabs.pl30 {
    .el-tabs__header {
        padding-left: 30px;
    }
}

.el-tabs__header {
    margin-bottom: 20px;
}

.el-tabs__nav-wrap:after {
    background: transparent;
}

.el-tabs__active-bar {
    display: none;
}

.el-tabs__item {
    color: #90979d;
    position: relative;
    height: auto;
    line-height: 20px;
    padding: 10px 0 14px;
    margin-right: 30px;
}

.el-tabs__item.is-active::after {
    position: absolute;
    content: "";
    display: inline-block;
    width: 20px;
    height: 4px;
    background: #7063e8;
    border-radius: 20px;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.el-table {
    color: #676e75;
    .cell {
        padding-left: 16px;
    }
    .el-table__header,
    .el-table__header-wrapper {
        border-radius: 6px 6px 0 0;
        thead,
        tr {
            border-radius: 6px 6px 0 0;
        }
    }
    .el-table__body,
    .el-table__body-wrapper {
        border-radius: 0 0 6px 6px;
    }
}

.el-table .el-link {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-table--border {
    border-radius: 6px;
}

.el-table thead th {
    background: #f5f7fa !important;
}

.el-table thead .cell {
    color: #363c43;
    font-weight: normal !important;
    padding-left: 16px;
}

.el-table th.el-table__cell > .cell {
    padding-left: 16px;
}

.el-table--border {
    border-bottom: 1px solid #dae1e9;
}

.el-switch.is-checked .el-switch__core {
    border-color: #41cb84;
    background: #41cb84;
}

.el-pagination.is-background {
    .btn-prev,
    .btn-next,
    .el-pager li {
        border-radius: 6px;
        font-weight: normal;
        background: #fff;
        border: 1px solid #dae1e9;
        color: #676e75;
    }
    .btn-prev:disabled,
    .btn-next:disabled {
        background: #f9fbfc;
        color: #b1b4b8;
    }
}

.el-dropdown-menu {
    .el-dropdown-menu__item {
        line-height: 34px;
    }
    .el-dropdown-menu__item:not(.is-disabled):hover,
    .el-dropdown-menu__item:focus {
        background: #f5f7fa;
        color: #606266;
    }
}

.el-range-editor--small.el-input__inner {
    height: 34px;
    border-radius: 6px;
}

.el-radio-button {
    &:first-child {
        .el-radio-button__inner {
            border-radius: 6px 0 0 6px;
        }
    }
    &:last-child {
        .el-radio-button__inner {
            border-radius: 0 6px 6px 0;
        }
    }
}

.el-radio__inner {
    width: 16px;
    height: 16px;
    background: url(../assets/images/radio.png);
    background-size: cover !important;
    border: none;
}

.el-radio__inner:after,
.el-checkbox__inner:after {
    display: none;
}

.el-radio__input.is-checked .el-radio__inner {
    background: url(../assets/images/radioChecked.png);
}

.ant-select-tree-checkbox-inner,
.el-checkbox__inner {
    width: 16px;
    height: 16px;
    background: url(../assets/images/checkbox.png) !important;
    background-size: cover !important;
    border: none;
}

.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner,
.el-checkbox__input.is-checked .el-checkbox__inner {
    background: url(../assets/images/checkbocChecked.png) !important;
    background-size: cover !important;
}
